<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../header.jsp">
<jsp:param value="员工修改>>部门更新" name="title"/>
</jsp:include>
<link rel="stylesheet" type="text/css" href="static/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="static/css/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/css/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="static/css/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/css/style.css" /> 
<script type="text/javascript">
$(function() {
	$('.dropdown')
	  .dropdown({
	    // 你可以使用任何过渡
	    transition: 'drop'
	  });
});
</script>
</head>
<body>
<nav class="breadcrumb">P
<i class="Hui-iconfont">&#xe67f;</i>
<a href="staff?method=forward">首页 </a><span class="c-gray en">&gt;</span>
  <a href="staff?method=selectby">员工管理</a> <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="teacher-content">
		<form  method="post" action="staff?method=updateStaff" class="ui form create-form">
		  <input type="hidden" name="id" value="${s.staffId}">		   
		  <div class="field">
		    <label>姓名</label>
		    <input type="text" name="name" value="${s.staffName}">
		  </div>
		   <div class="field">
		    <label>性别</label>
		    <input type="text" name="sex" value="${s.staffSex}">
		  </div>
		  <div class="field">
		    <label>地址</label>
		    <input type="text" name="address" value="${s.staffAddress}">${s.staffAddress }
		  </div>
		   <div class="field">
		    <label>电话</label>
		    <input type="text" name="phone" value="${s.staffPhone}">${s.staffPhone }
		  </div>
		  <div class="field">
		    <label>邮箱</label>
		    <input type="text" name="email" value="${s.staffEmail}">${s.staffEmail }
		  </div>
		   <div class="field">
		    <label>职位</label>
		 <select  name="position">
		<c:forEach items="${poslist}" var="pos">
				<option value="${pos.positionId}" >${pos.positionName }</option>
		</c:forEach>
		</select>
		  </div>
		   <div class="field">
		    <label>部门</label>
		 <select  name="dept">
		<c:forEach items="${deptlist}" var="dept">
			<option value="${dept.deptId}">${dept.deptName }</option>
		</c:forEach>
		</select>
		  </div>
		
		  <button class="ui button" type="submit">
			保存
		  </button>
		  <span>${error}</span>
		</form>
	</div>

</body>
</html>